OBJS=main.o quick_sort.o insertion_sort.o selection_sort.o
CC=g++
CFLAGS=-g -c -Wall

sort: $(OBJS)
	$(CC) -g $(OBJS) -o sort

main.o: main.cpp
	$(CC) $(CFLAGS) main.cpp

quick_sort.o: ../../source/sorting/quick_sort.cpp
	$(CC) $(CFLAGS) ../../source/sorting/quick_sort.cpp

insertion_sort.o: ../../source/sorting/insertion_sort.cpp
	$(CC) $(CFLAGS) ../../source/sorting/insertion_sort.cpp

selection_sort.o: ../../source/sorting/selection_sort.cpp
	$(CC) $(CFLAGS) ../../source/sorting/selection_sort.cpp

clean:
	rm -rf *.o .

